package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.Category;
import com.fenxiangtech.mall.model.qc.CategoryQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface CategoryDAO{

    int insertCategory(Category category);

    int updateCategory(Category category);

    List<Category> listCategory(CategoryQC category);

    Long countCategory(CategoryQC category);

    int insertBatch(@Param("list") List<Category> categorys);

    int deleteCategoryById(Long id);

}